home *** CD-ROM | disk | FTP | other *** search
/ Mac Easy 2010 May / Mac Life Ubuntu.iso / casper / filesystem.squashfs / var / lib / python-support / python2.6 / orca / settings.pyc (.txt) < prev    next >
Encoding:
Python Compiled Bytecode  |  2009-04-20  |  16.7 KB  |  544 lines

  1. # Source Generated with Decompyle++
  2. # File: in.pyc (Python 2.6)
  3.  
  4. """Manages the settings for Orca.  This will defer to user settings first, but
  5. fallback to local settings if the user settings doesn't exist (e.g., in the
  6. case of gdm) or doesn't have the specified attribute."""
  7. __id__ = '$Id: settings.py 4674 2009-04-10 13:39:24Z wwalker $'
  8. __version__ = '$Revision: 4674 $'
  9. __date__ = '$Date: 2009-04-10 09:39:24 -0400 (Fri, 10 Apr 2009) $'
  10. __copyright__ = 'Copyright (c) 2004-2008 Sun Microsystems Inc.'
  11. __license__ = 'LGPL'
  12. import os
  13. import re
  14. screenWidth = 640
  15. screenHeight = 480
  16. tty = 7
  17. canPresentToolTips = False
  18.  
  19. try:
  20.     import gtk.gdk as gtk
  21.     _display = gtk.gdk.display_get_default()
  22.     _screen = _display.get_default_screen()
  23.     _root_window = _screen.get_root_window()
  24.     screenWidth = _screen.get_width()
  25.     screenHeight = _screen.get_height()
  26.     (atom, format, data) = _root_window.property_get('XFree86_VT')
  27.     tty = data[0]
  28.     minimum_gtk_version = 200000 + 10000 + 11
  29.     current_gtk_version = 100000 * gtk.gtk_version[0] + 1000 * gtk.gtk_version[1] + gtk.gtk_version[2]
  30.     canPresentToolTips = current_gtk_version >= minimum_gtk_version
  31. except:
  32.     pass
  33.  
  34.  
  35. try:
  36.     import gconf
  37.     gconfClient = gconf.client_get_default()
  38. except:
  39.     gconfClient = None
  40.  
  41. import pyatspi
  42. import debug
  43. from acss import ACSS
  44. from orca_i18n import _
  45. from orca_i18n import C_
  46. userCustomizableSettings = [
  47.     'orcaModifierKeys',
  48.     'enableSpeech',
  49.     'speechServerFactory',
  50.     'speechServerInfo',
  51.     'voices',
  52.     'speechVerbosityLevel',
  53.     'readTableCellRow',
  54.     'enableSpeechIndentation',
  55.     'enableEchoByWord',
  56.     'enableEchoBySentence',
  57.     'enableKeyEcho',
  58.     'enablePrintableKeys',
  59.     'enableModifierKeys',
  60.     'enableLockingKeys',
  61.     'enableFunctionKeys',
  62.     'enableActionKeys',
  63.     'enableNavigationKeys',
  64.     'enableTutorialMessages',
  65.     'enableMnemonicSpeaking',
  66.     'enableBraille',
  67.     'enableBrailleContext',
  68.     'enableBrailleGrouping',
  69.     'disableBrailleEOL',
  70.     'brailleEOLIndicator',
  71.     'brailleVerbosityLevel',
  72.     'brailleRolenameStyle',
  73.     'brailleSelectorIndicator',
  74.     'brailleLinkIndicator',
  75.     'enableBrailleMonitor',
  76.     'enableMagnifier',
  77.     'enableMagLiveUpdating',
  78.     'enableMagCursor',
  79.     'enableMagCursorExplicitSize',
  80.     'magHideCursor',
  81.     'magCursorSize',
  82.     'magCursorColor',
  83.     'enableMagCrossHair',
  84.     'enableMagCrossHairClip',
  85.     'magCrossHairSize',
  86.     'magCrossHairColor',
  87.     'magZoomerType',
  88.     'magZoomerLeft',
  89.     'magZoomerRight',
  90.     'magZoomerTop',
  91.     'magZoomerBottom',
  92.     'magZoomFactor',
  93.     'enableMagZoomerBorder',
  94.     'magZoomerBorderSize',
  95.     'magZoomerBorderColor',
  96.     'enableMagZoomerColorInversion',
  97.     'magBrightnessLevel',
  98.     'magBrightnessLevelRed',
  99.     'magBrightnessLevelBlue',
  100.     'magBrightnessLevelGreen',
  101.     'magContrastLevel',
  102.     'magContrastLevelRed',
  103.     'magContrastLevelGreen',
  104.     'magContrastLevelBlue',
  105.     'magSmoothingMode',
  106.     'magMouseTrackingMode',
  107.     'magControlTrackingMode',
  108.     'magTextTrackingMode',
  109.     'magEdgeMargin',
  110.     'magPointerFollowsFocus',
  111.     'magPointerFollowsZoomer',
  112.     'magColorFilteringMode',
  113.     'magSourceDisplay',
  114.     'magTargetDisplay',
  115.     'verbalizePunctuationStyle',
  116.     'showMainWindow',
  117.     'quitOrcaNoConfirmation',
  118.     'presentToolTips',
  119.     'sayAllStyle',
  120.     'keyboardLayout',
  121.     'speakBlankLines',
  122.     'speakMultiCaseStringsAsWords',
  123.     'enabledSpokenTextAttributes',
  124.     'enabledBrailledTextAttributes',
  125.     'textAttributesBrailleIndicator',
  126.     'enableProgressBarUpdates',
  127.     'progressBarUpdateInterval',
  128.     'enableContractedBraille',
  129.     'brailleContractionTable',
  130.     'enableMouseReview',
  131.     'mouseDwellDelay',
  132.     'speakCellCoordinates',
  133.     'speakCellSpan',
  134.     'speakCellHeaders',
  135.     'skipBlankCells',
  136.     'largeObjectTextLength',
  137.     'wrappedStructuralNavigation',
  138.     'presentRequiredState',
  139.     'brailleRequiredStateString',
  140.     'speechRequiredStateString']
  141. mainWindowModule = 'orca_gui_main'
  142. guiPreferencesModule = 'orca_gui_prefs'
  143. consolePreferencesModule = 'orca_console_prefs'
  144. appGuiPreferencesModule = 'app_gui_prefs'
  145. quitModule = 'orca_quit'
  146. findModule = 'orca_gui_find'
  147. DESKTOP_MODIFIER_KEYS = [
  148.     'Insert',
  149.     'KP_Insert']
  150. LAPTOP_MODIFIER_KEYS = [
  151.     'Caps_Lock']
  152. orcaModifierKeys = DESKTOP_MODIFIER_KEYS
  153. MODIFIER_ORCA = 8
  154. VERBOSITY_LEVEL_BRIEF = 0
  155. VERBOSITY_LEVEL_VERBOSE = 1
  156. speechVerbosityLevel = VERBOSITY_LEVEL_VERBOSE
  157. brailleVerbosityLevel = VERBOSITY_LEVEL_VERBOSE
  158. BRAILLE_ROLENAME_STYLE_SHORT = 0
  159. BRAILLE_ROLENAME_STYLE_LONG = 1
  160. brailleRolenameStyle = BRAILLE_ROLENAME_STYLE_LONG
  161. BRAILLE_SEL_NONE = 0
  162. BRAILLE_SEL_7 = 64
  163. BRAILLE_SEL_8 = 128
  164. BRAILLE_SEL_BOTH = 192
  165. brailleSelectorIndicator = BRAILLE_SEL_BOTH
  166. BRAILLE_LINK_NONE = 0
  167. BRAILLE_LINK_7 = 64
  168. BRAILLE_LINK_8 = 128
  169. BRAILLE_LINK_BOTH = 192
  170. brailleLinkIndicator = BRAILLE_LINK_BOTH
  171. PUNCTUATION_STYLE_NONE = 3
  172. PUNCTUATION_STYLE_SOME = 2
  173. PUNCTUATION_STYLE_MOST = 1
  174. PUNCTUATION_STYLE_ALL = 0
  175. verbalizePunctuationStyle = PUNCTUATION_STYLE_MOST
  176. SAYALL_STYLE_LINE = 0
  177. SAYALL_STYLE_SENTENCE = 1
  178. sayAllStyle = SAYALL_STYLE_SENTENCE
  179. speechRateDelta = 5
  180. speechPitchDelta = 0.5
  181. httpServerPort = 0
  182. maxHttpServerRetries = 20
  183. if os.getenv('DBUS_SESSION_BUS_ADDRESS'):
  184.     useDBus = True
  185. else:
  186.     useDBus = False
  187. enableRemoteLogging = False
  188. enableSpeech = True
  189. enableSpeechCallbacks = True
  190. silenceSpeech = False
  191. speechFactoryModules = [
  192.     'espeechfactory',
  193.     'gnomespeechfactory',
  194.     'speechdispatcherfactory']
  195. speechServerFactory = 'gnomespeechfactory'
  196. speechServerInfo = None
  197. DEFAULT_VOICE = 'default'
  198. UPPERCASE_VOICE = 'uppercase'
  199. HYPERLINK_VOICE = 'hyperlink'
  200. voices = {
  201.     DEFAULT_VOICE: ACSS({ }),
  202.     UPPERCASE_VOICE: ACSS({
  203.         ACSS.AVERAGE_PITCH: 5.6 }),
  204.     HYPERLINK_VOICE: ACSS({ }) }
  205. enableSpeechIndentation = False
  206. enableBraille = True
  207. enableBrailleContext = True
  208. enableBrailleGrouping = False
  209. enableBrailleMonitor = False
  210. disableBrailleEOL = False
  211. brailleEOLIndicator = ' $l'
  212. brailleCheckBoxIndicators = [
  213.     '< >',
  214.     '<x>',
  215.     '<->']
  216. brailleRadioButtonIndicators = [
  217.     '& y',
  218.     '&=y']
  219. enableMagnifier = False
  220. enableMagLiveUpdating = True
  221. enableMagCursor = True
  222. enableMagCursorExplicitSize = False
  223. magHideCursor = False
  224. magCursorSize = 32
  225. magCursorColor = '#000000'
  226. enableMagCrossHair = True
  227. enableMagCrossHairClip = False
  228. magCrossHairSize = 16
  229. magCrossHairColor = '#000000'
  230. MAG_ZOOMER_TYPE_FULL_SCREEN = 0
  231. MAG_ZOOMER_TYPE_TOP_HALF = 1
  232. MAG_ZOOMER_TYPE_BOTTOM_HALF = 2
  233. MAG_ZOOMER_TYPE_LEFT_HALF = 3
  234. MAG_ZOOMER_TYPE_RIGHT_HALF = 4
  235. MAG_ZOOMER_TYPE_CUSTOM = 5
  236. magZoomerType = MAG_ZOOMER_TYPE_FULL_SCREEN
  237. magZoomerLeft = screenWidth / 2
  238. magZoomerRight = screenWidth
  239. magZoomerTop = 0
  240. magZoomerBottom = screenHeight
  241. magZoomFactor = 4
  242. enableMagZoomerBorder = False
  243. magZoomerBorderSize = 1
  244. magZoomerBorderColor = '#000000'
  245. enableMagZoomerColorInversion = False
  246. magBrightnessLevel = 0
  247. magBrightnessLevelRed = 0
  248. magBrightnessLevelGreen = 0
  249. magBrightnessLevelBlue = 0
  250. magContrastLevel = 0
  251. magContrastLevelRed = 0
  252. magContrastLevelGreen = 0
  253. magContrastLevelBlue = 0
  254. MAG_COLOR_FILTERING_MODE_NONE = 0
  255. MAG_COLOR_FILTERING_MODE_SATURATE_RED = 1
  256. MAG_COLOR_FILTERING_MODE_SATURATE_GREEN = 2
  257. MAG_COLOR_FILTERING_MODE_SATURATE_BLUE = 3
  258. MAG_COLOR_FILTERING_MODE_DESATURATE_RED = 4
  259. MAG_COLOR_FILTERING_MODE_DESATURATE_GREEN = 5
  260. MAG_COLOR_FILTERING_MODE_DESATURATE_BLUE = 6
  261. MAG_COLOR_FILTERING_MODE_POSITIVE_HUE_SHIFT = 7
  262. MAG_COLOR_FILTERING_MODE_NEGATIVE_HUE_SHIFT = 8
  263. magColorFilteringMode = MAG_COLOR_FILTERING_MODE_NONE
  264. MAG_SMOOTHING_MODE_BILINEAR = 0
  265. MAG_SMOOTHING_MODE_NONE = 1
  266. magSmoothingMode = MAG_SMOOTHING_MODE_BILINEAR
  267. MAG_TRACKING_MODE_CENTERED = 0
  268. MAG_TRACKING_MODE_PROPORTIONAL = 1
  269. MAG_TRACKING_MODE_PUSH = 2
  270. MAG_TRACKING_MODE_NONE = 3
  271. MAG_MOUSE_TRACKING_MODE_CENTERED = MAG_TRACKING_MODE_CENTERED
  272. MAG_MOUSE_TRACKING_MODE_PROPORTIONAL = MAG_TRACKING_MODE_PROPORTIONAL
  273. MAG_MOUSE_TRACKING_MODE_PUSH = MAG_TRACKING_MODE_PUSH
  274. MAG_MOUSE_TRACKING_MODE_NONE = MAG_TRACKING_MODE_NONE
  275. magMouseTrackingMode = MAG_TRACKING_MODE_CENTERED
  276. magControlTrackingMode = MAG_TRACKING_MODE_PUSH
  277. magTextTrackingMode = MAG_TRACKING_MODE_PUSH
  278. magEdgeMargin = 0
  279. magPointerFollowsFocus = False
  280. magPointerFollowsZoomer = True
  281. magSourceDisplay = ''
  282. magTargetDisplay = ''
  283. enableEchoByWord = False
  284. enableEchoBySentence = False
  285. enableKeyEcho = True
  286. enablePrintableKeys = True
  287. enableModifierKeys = True
  288. enableLockingKeys = True
  289. enableFunctionKeys = True
  290. enableActionKeys = True
  291. enableNavigationKeys = False
  292. enableTutorialMessages = False
  293. enableMnemonicSpeaking = False
  294. showMainWindow = True
  295. quitOrcaNoConfirmation = False
  296. if False:
  297.     pass
  298. presentToolTips = canPresentToolTips
  299. GENERAL_KEYBOARD_LAYOUT_DESKTOP = 1
  300. GENERAL_KEYBOARD_LAYOUT_LAPTOP = 2
  301. keyboardLayout = GENERAL_KEYBOARD_LAYOUT_DESKTOP
  302. outlineColor = [
  303.     65535,
  304.     0,
  305.     0]
  306. outlineThickness = 4
  307. outlineMargin = 1
  308. OUTLINE_NONE = 0
  309. OUTLINE_BOX = 1
  310. OUTLINE_LINE = 2
  311. OUTLINE_WEDGES = 3
  312. outlineStyle = OUTLINE_BOX
  313. speakBlankLines = True
  314. speakMultiCaseStringsAsWords = False
  315. readTableCellRow = True
  316. enableProgressBarUpdates = True
  317. progressBarUpdateInterval = 10
  318. presentReadOnlyText = True
  319. speechReadOnlyString = C_('text', 'read only')
  320. brailleReadOnlyString = C_('text', 'rdonly')
  321. allTextAttributes = 'bg-color:; bg-full-height:; bg-stipple:; direction:; editable:; family-name:; fg-color:; fg-stipple:; font-effect:none; indent:0; invisible:; justification:left; language:; left-margin:; line-height:100%; paragraph-style:Default; pixels-above-lines:; pixels-below-lines:; pixels-inside-wrap:; right-margin:; rise:; scale:; size:; stretch:; strikethrough:false; style:normal; text-decoration:none; text-rotation:0; text-shadow:none; underline:none; variant:; vertical-align:baseline; weight:400; wrap-mode:; writing-mode:lr-tb;'
  322. enabledSpokenTextAttributes = 'size:; family-name:; weight:400; indent:0; underline:none; strikethrough:false; justification:left; style:normal; paragraph-style:;'
  323. enabledBrailledTextAttributes = 'size:; family-name:; weight:400; indent:0; underline:none; strikethrough:false; justification:left; style:normal;'
  324. TEXT_ATTR_BRAILLE_NONE = 0
  325. TEXT_ATTR_BRAILLE_7 = 64
  326. TEXT_ATTR_BRAILLE_8 = 128
  327. TEXT_ATTR_BRAILLE_BOTH = 192
  328. textAttributesBrailleIndicator = TEXT_ATTR_BRAILLE_NONE
  329. repeatCharacterLimit = 4
  330. ariaLandmarks = [
  331.     'application',
  332.     'article',
  333.     'banner',
  334.     'complementary',
  335.     'contentinfo',
  336.     'definition',
  337.     'directory',
  338.     'document',
  339.     'grid',
  340.     'log',
  341.     'main',
  342.     'menubar',
  343.     'navigation',
  344.     'note',
  345.     'region',
  346.     'search',
  347.     'secondary',
  348.     'seealso',
  349.     'status']
  350. enableCustomScripts = True
  351. keyBindingsMap = { }
  352. brailleBindingsMap = { }
  353. cacheValues = True
  354. cacheDescriptions = True
  355. cacheAccessibles = True
  356. learnModeEnabled = False
  357. userPrefsDir = os.path.join(os.environ['HOME'], '.orca')
  358. commFailureWaitTime = 0.1
  359. commFailureAttemptLimit = 5
  360. gilSleepTime = 1e-05
  361. useBlockPreventor = False
  362. useBonoboMain = True
  363. asyncMode = True
  364. synchronousToolkits = [
  365.     'J2SE-access-bridge']
  366. debugEventQueue = False
  367. debugMemoryUsage = False
  368. timeoutTime = 10
  369. timeoutCallback = None
  370. doubleClickTimeout = 0.5
  371.  
  372. def isAccessibilityEnabled():
  373.     
  374.     try:
  375.         return gconfClient.get_bool('/desktop/gnome/interface/accessibility')
  376.     except:
  377.         return False
  378.  
  379.  
  380.  
  381. def setAccessibilityEnabled(enable):
  382.     
  383.     try:
  384.         return gconfClient.set_bool('/desktop/gnome/interface/accessibility', enable)
  385.     except:
  386.         return False
  387.  
  388.  
  389.  
  390. def isOrcaAutostarted():
  391.     '''Return an indication of whether Orca autostart at login time is enabled.
  392.     '''
  393.     prefix = '/desktop/gnome/applications/at/visual/'
  394.     
  395.     try:
  396.         if 'orca' in gconfClient.get_string(prefix + 'exec'):
  397.             pass
  398.         return gconfClient.get_bool(prefix + 'startup')
  399.     except:
  400.         return False
  401.  
  402.  
  403.  
  404. def setOrcaAutostart(enable):
  405.     '''Enable or disable the autostart of Orca at login time.
  406.  
  407.     Arguments:
  408.     - enable: if True, whether Orca autostart at login time is enabled.
  409.  
  410.     Returns an indication of whether the operation was successful.
  411.     '''
  412.     prefix = '/desktop/gnome/applications/at/visual/'
  413.     
  414.     try:
  415.         if gconfClient.set_string(prefix + 'exec', 'orca'):
  416.             pass
  417.         return gconfClient.set_bool(prefix + 'startup', enable)
  418.     except:
  419.         return False
  420.  
  421.  
  422.  
  423. def isGKSUGrabDisabled():
  424.     
  425.     try:
  426.         return gconfClient.get_bool('/apps/gksu/disable-grab')
  427.     except:
  428.         return False
  429.  
  430.  
  431.  
  432. def setGKSUGrabDisabled(disable):
  433.     
  434.     try:
  435.         return gconfClient.set_bool('/apps/gksu/disable-grab', disable)
  436.     except:
  437.         return False
  438.  
  439.  
  440.  
  441. def overrideKeyBindings(script, keyBindings):
  442.     return keyBindings
  443.  
  444.  
  445. def overridePronunciations(script, pronunciations):
  446.     return pronunciations
  447.  
  448. settingsPackages = [
  449.     'app-settings']
  450. scriptPackages = [
  451.     'orca-scripts',
  452.     'scripts',
  453.     'scripts.apps',
  454.     'scripts.toolkits']
  455. _scriptMappings = []
  456.  
  457. def setScriptMapping(regExpression, moduleName):
  458.     '''Tells this module what script module to look for a given
  459.     application name.  The mappings are stored as a list and each
  460.     new mapping is added to the beginning of the list, meaning it
  461.     takes precedence over all other mappings.
  462.  
  463.     Arguments:
  464.     - regExpression: a regular expression used to match against an
  465.                      application name
  466.     - moduleName:    the name of the Python module containing the script
  467.                      class definition for the application
  468.     '''
  469.     _scriptMappings.insert(0, [
  470.         regExpression,
  471.         moduleName])
  472.  
  473.  
  474. def getScriptModuleName(app):
  475.     '''Returns the module name of the script to use for a given
  476.     application.  Any script mapping set via the setScriptMapping
  477.     method is searched first, with the ultimate fallback being the
  478.     name of the application itself.
  479.  
  480.     Arguments:
  481.     - app: the application to find a script module name for
  482.     '''
  483.     if not app.name:
  484.         return None
  485.     for mapping in _scriptMappings:
  486.         regExpression = mapping[0]
  487.         moduleName = mapping[1]
  488.         if regExpression.match(app.name):
  489.             debug.println(debug.LEVEL_FINEST, 'Script mapping for %s is %s' % (app.name, moduleName))
  490.             return moduleName
  491.     
  492.     return app.name
  493.  
  494. setScriptMapping(re.compile(_('[\\S\\s]*StarOffice[\\s\\S]*')), 'soffice')
  495. setScriptMapping(re.compile(_('soffice.bin')), 'soffice')
  496. setScriptMapping(re.compile(_('soffice')), 'soffice')
  497. setScriptMapping(re.compile(_('[Ee]volution')), 'evolution')
  498. setScriptMapping(re.compile(_('Deer Park')), 'Mozilla')
  499. setScriptMapping(re.compile(_('Bon Echo')), 'Mozilla')
  500. setScriptMapping(re.compile(_('Minefield')), 'Mozilla')
  501. setScriptMapping(re.compile('Shiretoko'), 'Mozilla')
  502. setScriptMapping(re.compile('[Ff]irefox'), 'Mozilla')
  503. setScriptMapping(re.compile(_('Shredder')), 'Thunderbird')
  504. setScriptMapping(re.compile(_('Mail/News')), 'Thunderbird')
  505. setScriptMapping(re.compile(_('bug-buddy')), 'gnome_segv2')
  506. setScriptMapping(re.compile(_('vte')), 'gnome-terminal')
  507. setScriptMapping(re.compile(_('gaim')), 'pidgin')
  508. setScriptMapping(re.compile('gnome-help'), 'yelp')
  509. deprecatedMessages = False
  510. focusHistoryLength = 5
  511. listenAllEvents = False
  512. ignoredEventsList = [
  513.     'object:bounds-changed']
  514. inferLiveRegions = True
  515. enableContractedBraille = False
  516. brailleContractionTable = ''
  517. useCollection = True
  518. speakCellCoordinates = True
  519. speakCellSpan = True
  520. speakCellHeaders = True
  521. skipBlankCells = False
  522. largeObjectTextLength = 75
  523. wrappedStructuralNavigation = True
  524. enableMouseReview = False
  525. mouseDwellDelay = 0
  526. mouseDwellMaxDrift = 3
  527. NO_MODIFIER_MASK = 0
  528. ALT_MODIFIER_MASK = 1 << pyatspi.MODIFIER_ALT
  529. CTRL_MODIFIER_MASK = 1 << pyatspi.MODIFIER_CONTROL
  530. ORCA_MODIFIER_MASK = 1 << MODIFIER_ORCA
  531. ORCA_ALT_MODIFIER_MASK = 1 << MODIFIER_ORCA | 1 << pyatspi.MODIFIER_ALT
  532. ORCA_CTRL_MODIFIER_MASK = 1 << MODIFIER_ORCA | 1 << pyatspi.MODIFIER_CONTROL
  533. ORCA_CTRL_ALT_MODIFIER_MASK = 1 << MODIFIER_ORCA | 1 << pyatspi.MODIFIER_CONTROL | 1 << pyatspi.MODIFIER_ALT
  534. ORCA_SHIFT_MODIFIER_MASK = 1 << MODIFIER_ORCA | 1 << pyatspi.MODIFIER_SHIFT
  535. SHIFT_MODIFIER_MASK = 1 << pyatspi.MODIFIER_SHIFT
  536. SHIFT_ALT_MODIFIER_MASK = 1 << pyatspi.MODIFIER_SHIFT | 1 << pyatspi.MODIFIER_ALT
  537. COMMAND_MODIFIER_MASK = 1 << pyatspi.MODIFIER_ALT | 1 << pyatspi.MODIFIER_CONTROL | 1 << pyatspi.MODIFIER_META2 | 1 << pyatspi.MODIFIER_META3
  538. NON_LOCKING_MODIFIER_MASK = 1 << pyatspi.MODIFIER_SHIFT | 1 << pyatspi.MODIFIER_ALT | 1 << pyatspi.MODIFIER_CONTROL | 1 << pyatspi.MODIFIER_META2 | 1 << pyatspi.MODIFIER_META3 | 1 << MODIFIER_ORCA
  539. ALL_BUT_NUMLOCK_MODIFIER_MASK = 1 << MODIFIER_ORCA | 1 << pyatspi.MODIFIER_SHIFT | 1 << pyatspi.MODIFIER_SHIFTLOCK | 1 << pyatspi.MODIFIER_CONTROL | 1 << pyatspi.MODIFIER_ALT | 1 << pyatspi.MODIFIER_META2 | 1 << pyatspi.MODIFIER_META3
  540. defaultModifierMask = NON_LOCKING_MODIFIER_MASK
  541. presentRequiredState = False
  542. brailleRequiredStateString = _('required')
  543. speechRequiredStateString = _('required')
  544.